* lisp/vc/vc-git.el (vc-git-working-revision): When in detached mode,
authorDmitry Gutov <dgutov@yandex.ru>
Mon, 27 May 2013 23:11:21 +0000 (03:11 +0400)
committerDmitry Gutov <dgutov@yandex.ru>
Mon, 27 May 2013 23:11:21 +0000 (03:11 +0400)
commit403a12f63600be782488eb14718d51211bbac63f
tree43d46ed1584b80256174f114d65c0cf54a83164c
parent791695e481801ca4d27a11a1ccca8482c1041130
* lisp/vc/vc-git.el (vc-git-working-revision): When in detached mode,
return the commit hash.  Also set the `vc-git-detached' property.
(vc-git--rev-parse): Extract from `vc-git-previous-revision'.
(vc-git-mode-line-string): Use the same help-echo format whether in
detached mode or not, because we know the actual revision now.  When
in detached mode, shorten the revision to 7 chars.
lisp/ChangeLog
lisp/vc/vc-git.el